package com.hyk.commonLib.common.utils.eventHandler;

import androidx.fragment.app.Fragment;

import com.hyk.commonLib.common.activity.BaseActivity;
import com.hyk.commonLib.common.utils.viewModel.BaseObservableModel;

import org.jetbrains.annotations.NotNull;

public class FragmentEventHandler<FRAGMENT extends Fragment, MODEL extends BaseObservableModel> extends BaseEventHandler<FRAGMENT, MODEL> {
    public FragmentEventHandler(@NotNull FRAGMENT fragment, MODEL model) {
        super(fragment, model);
    }

    @Override
    public BaseActivity<?> getActivity() {
        return (BaseActivity<?>) getContainer().getActivity();
    }
}
